package com.hyts.threads.conf;

import java.util.concurrent.TimeUnit;

/**
 * @author libo
 * @date 2017-07-05
 * @description 线程池执行类-配置类
 */
public class ThreadPoolConfig {
	
		/***********************默认核心线程池大小**********************************/
		public static final int DEFAULT_CORE_THREAD_POOL_SIZE = 10;
		
		/***********************默认最大线程池大小**********************************/
		public static final int DEFAULT_MAX_THREAD_POOL_SIZE = 100;
		
		/***********************默认空闲时间**********************************/
		public static final long DEFAULT_KEEP_ALIVE_TIME = 60;
		
		/***********************默认默认时间单位**********************************/
		public static final TimeUnit DEFAULT_TIME_UNIT = TimeUnit.SECONDS;
	
		/***********************默认缓冲队列长度***-1代表无边界=newCachedThreadPool*******************************/
		public static final Integer DEFAULT_BLOCKQUEUE_SIZE = 10;

}
